package com.zhpan.indicator.drawer;

import com.zhpan.indicator.options.IndicatorOptions;

import ohos.agp.render.Canvas;

/**
 * 圆角矩形
 *
 * @since 2021-04-13
 */
public class RoundRectDrawer extends RectDrawer {
    /**
     * 圆角矩形
     *
     * @param options 配置
     */
    public RoundRectDrawer(IndicatorOptions options) {
        super(options);
    }

    @Override
    protected void drawRoundRect(Canvas canvas, float rx, float ry) {
        canvas.drawRoundRect(mRectF, rx, ry, mPaint);
    }
}
